package br.com.gaacorp.sai.webapp.action;

import java.io.Serializable;
import java.util.List;

import br.com.gaacorp.sai.service.CollegeManager;

public class CollegeList extends BasePage implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -9025102658688135604L;
	private CollegeManager collegeManager;

    public void setCollegeManager(CollegeManager collegeManager) {
        this.collegeManager = collegeManager;
    }

    public CollegeList() {
        setSortColumn("collegeId"); // sets the default sort column
    }

    public List getColleges() {
        return sort(collegeManager.getAll());
    }
}

